EPOCH ?= 0
VERSION ?= dev

docker_registry = docker.wetranslate.huawei.com
docker_repository = base
image_base_name = oracledb
image_tag = $(EPOCH).$(VERSION)
remote_image_name = $(docker_registry)/$(docker_repository)/$(image_base_name)
remote_image_full_name = $(remote_image_name):$(image_tag)

default: image

image:
	docker build --rm -t $(remote_image_full_name) .
	docker tag $(remote_image_full_name) $(remote_image_name):latest

release:
	docker push $(remote_image_full_name)
	docker push $(remote_image_name):latest
